/*
 * @Author: ljc
 * @Date: 2024-12-06 16:01:58
 * @LastEditors: g05047
 * @LastEditTime: 2025-02-27 09:33:57
 * @Description: file content
 */

import { defAxios as request, blobAxios } from '@/utils/http';
import { } from '@/utils/http';
export function useFilesZjpsApi() {
	return {
		downloadReportData(params) {
			return request({
				url: '/onlineReview/downloadReport',
				method: 'post',
				responseType: 'blob',
				timeout: 0,
				data: params,
			});
		},
		downloadReviewFileByBlob(params) {
			return blobAxios({
				url: '/onlineReview/downloadReport',
				method: 'post',
				timeout: 0,
				responseType: 'blob',
				data: params,
			});
		},
		downloadData(params, progressFunc) {
			return request({
				url: '/onlineReview/download',
				method: 'post',
				responseType: 'blob',
				data: params,
				onDownloadProgress: progressFunc,
			});
		},
		onlineReviewData(params) {
			return request({
				url: '/onlineReview/previewReport',
				method: 'post',
				responseType: 'blob',
				data: params,
			});
		},
		getOnlineUploadFiles(params) {
			return request({
				url: '/uploadFile/previewList',
				method: 'post',
				data: params,
			});
		},
		downloadProPdfByBlob(params) {
			return blobAxios({
				url: '/proResApplyTask/generatePdf',
				method: 'post',
				timeout: 0,
				responseType: 'blob',
				data: params,
			});
		},

	};
}
